<template>
  <div class="wrap">
    <img src="@/assets/index/ruzhu.png" alt="" />
    <h5>经销商入驻</h5>
    <div class="flex justify-around item-center" style="margin: 10px 0">
      <span>登录</span>
      <el-divider direction="vertical" />
      <span>注册</span>
    </div>
    <el-divider style="border-top-color: #666; margin: 10px 0" />
    <img src="@/assets/index/h_kf_icon.png" alt="" />
    <h5>联系客服</h5>
  </div>
</template>

<script setup>
  import { ref } from 'vue'
</script>

<style scoped>
  .wrap {
    position: fixed;
    right: 0;
    top: 50vh;
    background-color: #961d13;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
    padding: 10px;
    border-radius: 30px 0 0 30px;

    img {
      width: 40px;
      margin: 5px 0;
    }

    span {
      font-size: 0.8rem;
      cursor: pointer;
      color: rgb(255, 255, 255, 0.8);
    }

    h5 {
      margin: 10px;
    }
  }

  /* 响应式设计 */
  @media (max-width: 768px) {
    .wrap {
      right: 0;
      top: 50vh;
      padding: 8px;
      border-radius: 20px 0 0 20px;
    }

    .wrap img {
      width: 30px;
      margin: 3px 0;
    }

    .wrap h5 {
      margin: 8px;
      font-size: 0.9rem;
    }

    .wrap span {
      font-size: 0.7rem;
    }
  }

  @media (max-width: 480px) {
    .wrap {
      right: 0;
      top: 50vh;
      padding: 6px;
      border-radius: 15px 0 0 15px;
    }

    .wrap img {
      width: 25px;
      margin: 2px 0;
    }

    .wrap h5 {
      margin: 6px;
      font-size: 0.8rem;
    }

    .wrap span {
      font-size: 0.65rem;
    }
  }
</style>
